@extends("layout.admin")

@section("title")
    修改信息
@endsection

@section("content")
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
        <legend>修改信息</legend>
    </fieldset>

    <form class="layui-form" action="{{route('admin.user.update')}}" method="post">
        {{csrf_field()}}
        <div class="layui-form-item">
            <label class="layui-form-label">账号</label>
            <div class="layui-input-block">
                <input type="text" name="name" autocomplete="off" placeholder="请输入菜单名称" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">密码</label>
            <div class="layui-input-block">
                <input type="text" name="password" autocomplete="off" placeholder="密码" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">路由</label>
            <div class="layui-input-block">
                <input type="text" name="uri" autocomplete="off" placeholder="跳转路由" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="reset" class="layui-btn layui-btn-normal">重置</button>
                <button type="submit" class="layui-btn">立即提交</button>
            </div>
        </div>
    </form>

@endsection

@section("script")
    <script>
        layui.use(['form', 'layedit', 'laydate'], function(){
            var form = layui.form
                ,layer = layui.layer
                ,layedit = layui.layedit
                ,laydate = layui.laydate;

            //日期
            laydate.render({
                elem: '#date'
            });
            laydate.render({
                elem: '#date1'
            });
        });
    </script>
@endsection

